home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Re FW_CString.4 < prev    next >
Encoding:
Internet Message Format  |  1996-08-20  |  1.9 KB  |  [TEXT/ttxt]

  1. Subject:     Re: FW_CString
  2. Sent:        8/20/96 10:38 AM
  3. Received:    8/20/96 10:51 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >I am working on a derivative of ODFContainer, but I want to be able to 
  9. >have a list of all the embedded parts in my container as a list akin to 
  10. >the Finder's view by name, kind...etc (small icons and text descriptors). 
  11. >How, in ODF, do I get the small icon and the small icon mask (I need to 
  12. >highlight) from the embedded part (through the CProxy object somehow?)?
  13. >
  14. There is no standard API in OpenDoc to access an embedded part icon 
  15. (icons are not x-platform). You don't really need the embedded part icon 
  16. anyway, just change the view type to icon and use the OpenDoc highlight 
  17. mechanism. ODF doesn't have any API to get to the embedded part icon but 
  18. I think there are some OpenDoc utilities to do that. You can use the 
  19. FW_MProxy::GetEmbeddedPartName to get the name.
  20.  
  21. >Also, is there an ODF call to get the selection color from the OS. I know 
  22. >I can go straight to the Toolbox, but I am trying to keep my part as 
  23. >platform neutral, and if there is an ODF call for getting colors, and 
  24. >other stuff I'd like to use it.
  25. >
  26. By the selection color I assume you mean the highlight color. In ODF 1 If 
  27. you use the FW_kHilite transfer mode with your ink and black for the 
  28. foreground color you will get the system highlight color. We changed that 
  29. in ODF 2: FW_kHilite always uses the ink foreground color, 
  30. FW_kSystemHilite ignores the ink foreground color and uses instead the 
  31. system hightlight color.
  32.  
  33. >-Scott Adler
  34.  
  35.  
  36. ........................................................................
  37.  Henri Lamiraux                                      lamiraux@apple.com
  38.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  39. ........................................................................
  40.  
  41.  
  42.